﻿using System.IO;
using System.Net.Http;
using System.Text;
using System.Text.Encodings.Web;
using System.Text.Json;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Path = System.IO.Path;

namespace Select;

/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
    public string NewIcon { get; set; } = Path.Combine(Directory.GetCurrentDirectory(), "Assets", "new.png");
    public string OpenIcon { get; set; } = Path.Combine(Directory.GetCurrentDirectory(), "Assets", "open.png");


    public MainWindow()
    {
        InitializeComponent();
    }

    private void TestClick(object sender, RoutedEventArgs e)
    {
        Console.WriteLine(JsonSerializer.Serialize(LeftContent.SelectInfoModel, new JsonSerializerOptions()
        {
            Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping,
        }));
    }

    private void LeftContent_Loaded(object sender, RoutedEventArgs e)
    {
    }
}